


import 'package:logger/logger.dart';

final ExchangeLogger logger = ExchangeLogger();
class ExchangeLogger {
  Logger? _logger;
  Logger get aLogger {
    if(null == _logger){
      _logger = Logger(
        printer: PrettyPrinter(
            methodCount: 0, // number of method calls to be displayed
            errorMethodCount: 8, // number of method calls if stacktrace is provided
            lineLength: 120, // width of the output
            colors: true, // Colorful log messages
            printEmojis: false, // Print an emoji for each log message
            printTime: true // Should each log print contain a timestamp
        )
      );
  }
    return _logger!;
}
  void d(dynamic message, [dynamic error, StackTrace? stackTrace]){
    aLogger.d(message, error, stackTrace);
  }

  void v(dynamic message, [dynamic error, StackTrace? stackTrace]){
    aLogger.v(message, error, stackTrace);
  }

  void i(dynamic message, [dynamic error, StackTrace? stackTrace]){
    aLogger.i(message, error, stackTrace);
  }

  void e(dynamic message, [dynamic error, StackTrace? stackTrace]){
    aLogger.e(message, error, stackTrace);
  }

  void w(dynamic message, [dynamic error, StackTrace? stackTrace]){
    aLogger.w(message, error, stackTrace);
  }
  void wtf(dynamic message, [dynamic error, StackTrace? stackTrace]){
    aLogger.wtf(message, error, stackTrace);
  }


}